from Configuration import input
import random

class Simulation:
	StartMonth = 0
	StopMonth = 0
	CurrentMonth = StartMonth

	def __init__(self) :
		self.Me = Investor()
		self.Economy = Economy()

		self.Configure()
		return self

	def Configure(self) :
		random.seed(input.Sim.Seed)
		self.StartMonth = input.Simulation.StartMonth
		self.StopMonth = input.Simulation.StopMonth
		self.Me.IncomeTaxRate = input.Me.IncomeTaxRate
		self.Me.RetirementSavingsRate = input.Me.RetirementSavingsRate
		self.Me.InitialSavings = 20000;

	def Run(self) :
		for month in range(self.StartMonth, self.StopMonth) :
			self.Me.Update()
			self.Economy.Update()
	

	def Finalize(self) :
		pass

	def InitializeList() :
		aList = []
		for i in range(0,Simulation.EndMonth):
			aList.append(0)
		return aList


class Job:
	def __init__(self) :
		self.Employed = 1
		self.YearlySalary = 0
		self

	def Update(self) :
		pass

class Economy:
	InflationRateYearly = 0
	AppreciationRateYearly = 0
	VacancyRate = 0
	AverageMonthlyRent = 0
	AverageHomePrice = 0

	def Update(self) :
		pass

if __name__=="__main__" :
	sim = Sim()
	print input
	sim.Configure();
	sim.Run();
	sim.Finalize();
